import request from '@/router/axios';
let url = '/http/admin/roles'  //云函数后面的url
// let url = '/http/test'  //test
// 查询
export const list = params => request({ url, method: 'get', params: { action: 'list', params } })
// 添加
export const add = params => request({ url, method: 'post', data: { action: 'add', params } })
// 删除
export const del = params => request({ url, method: 'post', data: { action: 'del', params } })
// 修改
export const update = params => request({ url, method: 'post', data: { action: 'update', params } })
